from google.appengine.ext import db
from google.appengine.api import users

class Character(db.Model):
  player = db.UserProperty(auto_current_user_add=True)

  name = db.StringProperty(required=True)
  talent = db.StringProperty()
  biography = db.TextProperty()

  # stats
  academics = db.IntegerProperty()
  athletics = db.IntegerProperty()
  technology = db.IntegerProperty()
  contact = db.IntegerProperty()
  cool = db.IntegerProperty()


class Franchise(db.Model):
  name = db.StringProperty(required=True)
  library = db.IntegerProperty()
  gym = db.IntegerProperty()
  credit = db.IntegerProperty()
  bank = db.IntegerProperty()
  notes = db.TextProperty()

  # rename to characters?
  employees = db.ListProperty(Character)
